1 Lecture

CS201

Midterm & Final Term Short Notes

What is programming

Programming is the process of designing, writing, and testing computer programs. It involves using a programming language to communicate with a computer and give it instructions to perform specific tasks. Programming is used in a wide variety of


Important Mcq's
Midterm & Finalterm Prepration
Past papers included

Download PDF
  1. Which of the following best describes programming? A) The process of designing and building computers B) The process of writing and testing computer programs C) The process of using computers to solve problems D) The process of analyzing data

Answer: B) The process of writing and testing computer programs

  1. Which of the following is NOT a programming language? A) Java B) HTML C) Python D) Photoshop

Answer: D) Photoshop

  1. What is the purpose of programming? A) To design and build computers B) To create user interfaces C) To write computer programs to solve problems D) To manipulate data

Answer: C) To write computer programs to solve problems

  1. Which of the following is a high-level programming language? A) Assembly language B) C++ C) Machine language D) Binary

Answer: B) C++

  1. Which of the following is a low-level programming language? A) Java B) Python C) Assembly language D) HTML

Answer: C) Assembly language

  1. What is the role of a compiler in programming? A) To convert high-level code to machine code B) To debug programs C) To provide an interface for users to interact with the computer D) To store and retrieve data

Answer: A) To convert high-level code to machine code

  1. Which of the following is a programming paradigm? A) Object-oriented programming B) Web programming C) Mobile app development D) Data analysis

Answer: A) Object-oriented programming

  1. Which of the following is NOT a data type in programming? A) Integer B) Float C) String D) Sound

Answer: D) Sound

  1. Which of the following is NOT a control structure in programming? A) If-else statement B) For loop C) While loop D) Array

Answer: D) Array

  1. Which of the following is a programming tool? A) Keyboard B) Mouse C) Integrated Development Environment (IDE) D) Printer

Answer: C) Integrated Development Environment (IDE)



Subjective Short Notes
Midterm & Finalterm Prepration
Past papers included

Download PDF
  1. What is programming, and why is it important? Answer: Programming is the process of writing computer programs that instruct a computer to perform specific tasks. It is important because it allows us to automate tasks, solve complex problems, and create innovative technologies.

  2. What are programming languages, and why are they necessary? Answer: Programming languages are languages used to communicate with a computer and write code. They are necessary because they allow us to write instructions that a computer can understand and execute.

  3. What is a compiler, and what is its role in programming? Answer: A compiler is a software tool that translates high-level programming code into machine code that a computer can understand and execute. Its role in programming is to convert human-readable code into machine-readable code.

  4. What are the common data types used in programming? Answer: The common data types used in programming include integers, floating-point numbers, characters, and strings.

  5. What are the common control structures used in programming? Answer: The common control structures used in programming include if-else statements, loops (for, while, do-while), and switch statements.

  6. What is an algorithm, and why is it important in programming? Answer: An algorithm is a set of step-by-step instructions that solve a problem or perform a task. It is important in programming because it allows us to create efficient and optimized programs.

  7. What is object-oriented programming, and what are its advantages? Answer: Object-oriented programming is a programming paradigm that focuses on creating objects that encapsulate data and behavior. Its advantages include code reuse, modularity, and easier maintenance.

  8. What is a function, and why is it important in programming? Answer: A function is a block of code that performs a specific task. It is important in programming because it allows us to write reusable code and break down complex problems into smaller, more manageable parts.

  9. What is debugging, and why is it important in programming? Answer: Debugging is the process of finding and fixing errors in code. It is important in programming because it ensures that the program works correctly and reliably.

  10. What are some ethical considerations in programming? Answer: Some ethical considerations in programming include protecting user privacy and security, avoiding bias and discrimination, and respecting intellectual property rights.

Programming is the process of designing, writing, and testing computer programs. It involves using a programming language to communicate with a computer and give it instructions to perform specific tasks. Programming is used in a wide variety of fields, including software development, web development, data analysis, and automation. Programming languages are used to write instructions that a computer can understand and execute. They include high-level languages like Java, Python, and C++, as well as low-level languages like assembly language and machine language. A compiler is a software tool that converts high-level code into machine code that a computer can execute. Programs are made up of data types, which include integers, floating-point numbers, characters, and strings. Control structures like if-else statements, loops (for, while, do-while), and switch statements are used to control the flow of a program. Functions are blocks of code that perform specific tasks and can be reused in multiple parts of a program. Object-oriented programming is a programming paradigm that focuses on creating objects that encapsulate data and behavior. It offers advantages like code reuse, modularity, and easier maintenance. Debugging is the process of finding and fixing errors in code. It is an important part of programming as it ensures that a program works correctly and reliably. Ethical considerations are also important in programming. Programmers must protect user privacy and security, avoid bias and discrimination, and respect intellectual property rights. In conclusion, programming is a vital skill in today's world, as it allows us to create innovative technologies, automate tasks, and solve complex problems.